--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 746f6584dfc4497f20d70a101f40b251ff10b6c4
Parents : ea33ea7
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-07-22T16:12:13+02:00
Fixed macos string encoding issue
Changes
1 files changed, 1 insertions(+), 1 deletions(-)
Diff
diff --git a/sbapp/plyer/platforms/macosx/storagepath.py b/sbapp/plyer/platforms/macosx/storagepath.py
index 79973a47..4c1a9181 100644
--- a/sbapp/plyer/platforms/macosx/storagepath.py
+++ b/sbapp/plyer/platforms/macosx/storagepath.py
@@ -24,7 +24,7 @@ class OSXStoragePath(StoragePath):
def _get_home_dir(self):
home_dir_NSURL = self.defaultManager.homeDirectoryForCurrentUser
- return home_dir_NSURL.absoluteString.UTF8String()
+ return home_dir_NSURL.absoluteString.UTF8String().decode("utf-8")
def _get_external_storage_dir(self):
return 'Method not implemented for current platform.'
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────